package com.k.kppcloud.modules.sdk.feign.admin.fallback;

import com.k.kppcloud.modules.sdk.feign.admin.UserControllerFeign;
import com.k.kppcloud.modules.sdk.feign.admin.domain.UserDTO;
import org.springframework.cloud.openfeign.FallbackFactory;

import java.util.List;

public class UserControllerFeignFallback  implements FallbackFactory<UserControllerFeign> {
    @Override
    public UserControllerFeign create(Throwable cause) {
        return new UserControllerFeign() {
            @Override
            public List<UserDTO> list() {
                System.err.println("kpp-admin-sdk-feign invoke error: list");
                return null;
            }
        };
    }
}
